{% extends 'window.twig' %}
{% block body %}
    <div class="admin-main-container">
        <div class="tools auth-botton with-padding btn-control data-view">
            <span class="action-btn">
                <a class="btn btn-primary" href="model.add">新 增</a>
                <a url="deleteGroup.html" class="btn btn-primary ajax-post confirm" target-form="ids">删 除</a>
            </span>
            &nbsp; &nbsp; &nbsp; &nbsp;

        </div>
        <!-- 数据列表 -->
        <div class="data-table with-padding data-view">
            <table class="table table-bordered table-striped ">
                <thead>
                <tr>
                    <th class="row-selected row-selected"><input class="check-all" data-check=".ids" type="checkbox"></th>
                    <th class="">模型名称</th>
                    <th class="">模型标识</th>
                    <th class="">系统标识</th>
                    <th style="width: 160px;">操作</th>
                </tr>
                </thead>
                <tbody>
                    {% for m in list %}
                    <tr>
                        <td><input {{ m.is_sys?'disabled="disabled"':'class="ids"' }} type="checkbox" name="id[]" value="1"></td>
                        <td>{{ m.model_title }}</td>
                        <td>{{ m.model_name }}</td>
                        <td>{{ m.is_sys ? '系统':'用户' }}</td>
                        <td>
                            <a href="model.fields?id={{ m.model_id }}">字段管理</a>
                            {% if m.is_sys != 1 %}
                            <a href="model.edit?id={{ m.model_id }}">编辑</a>
                            <a href="model.edit?id={{ m.model_id }}" class="confirm ajax-get">删除</a>
                            {% endif %}
                        </td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>

        </div>
        <div class="page">
            <div class="pager">    </div>    </div>

    </div>
{% endblock %}